<template>
  <div>
    <h1> this is home !!!  </h1>
    <h4> 计数器：{{ count}}</h4>

    <el-button type="success" @click="increment">点击我+1</el-button>
    <el-button type="success" @click="decrement">点击我-1</el-button>

  </div>
</template>

<script>
export default {
  name: "HomeView",

  data() {
    return {
      count: 0
    };
  },
  methods: {
    increment() {
      this.count++;
    },
    decrement() {
      this.count--;
    }
  }

};


</script>

<style scoped></style>
